package com.yunjijia.service.impl;

import com.yunjijia.mapper.RoleMapper;
import com.yunjijia.pojo.Role;
import com.yunjijia.service.IRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleServiceImpl implements IRoleService {

    @Resource
    private RoleMapper roleMapper;



    /**
     * @param rid
     * @return
     */
    @Override
    public Role getRoleByrid(int rid) {
        return roleMapper.getRoleByrid(rid);
    }
}
